﻿using MediatR;
using ShineTech.Web.Missons;
using System;

namespace ShineTech.Web.Missons.Commands
{
    public class CreateMissonCommand : IRequest<MissonDTO>
    {

        public Guid KanbanId { get; set; }
        public string Name { get; private set; }

        public bool IsComplete { get; private set; }

        public Guid CreatedUserId { get; private set; }

        public string CreatedUserName { get; private set; }

        public DateTime CreatedTime { get; private set; }




        public CreateMissonCommand(Guid kanbanId, string name, DateTime createdTime, Guid createdUserId, string createdUserName)
        {
            KanbanId = kanbanId;
            CreatedTime = createdTime;
            Name = name;
            CreatedUserId = createdUserId;
            CreatedUserName = createdUserName;
        }
    }

}
